package com.zmn.oms.persistence.interfaces.operation;

import com.zmn.oms.model.entity.operation.OrderOperation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类描述：
 *
 * @author lhl
 * @date 2020/01/07 21:13
 */
public interface OrderOperationDao {

    /**
     * 新增或修改
     * @param orderOperation
     * @return
     */
    int insertOrUpdateByKey(OrderOperation orderOperation);

    /**
     * 通过订单ID查询
     * @param orderId
     * @return
     */
    OrderOperation findBykey(Long orderId);

    /**
     * 通过订单ID查询
     * @param orderIdList
     * @return
     */
    List<OrderOperation> listByOrderIdList(@Param("orderIdList") List<Long> orderIdList);
}
